package com.ruoyi.system.service.impl;

import com.ruoyi.system.domain.SysBasic;
import com.ruoyi.system.mapper.SysBasicMapper;
import com.ruoyi.system.service.ISysBasicService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 基础数据Service业务层处理
 * 
 * @author gzhuangwei
 * @date 2021-09-29
 */
@Service
public class SysBasicServiceImpl implements ISysBasicService 
{
    @Autowired
    private SysBasicMapper sysBasicMapper;

    /**
     * 查询基础数据
     * 
     * @param basiId 基础数据ID
     * @return 基础数据
     */
    @Override
    public SysBasic selectSysBasicById(Long basiId)
    {
        return sysBasicMapper.selectSysBasicById(basiId);
    }

    /**
     * 查询基础数据列表
     * 
     * @param sysBasic 基础数据
     * @return 基础数据
     */
    @Override
    public List<SysBasic> selectSysBasicList(SysBasic sysBasic)
    {
        return sysBasicMapper.selectSysBasicList(sysBasic);
    }

    /**
     * 新增基础数据
     * 
     * @param sysBasic 基础数据
     * @return 结果
     */
    @Override
    public int insertSysBasic(SysBasic sysBasic)
    {
        return sysBasicMapper.insertSysBasic(sysBasic);
    }

    /**
     * 修改基础数据
     * 
     * @param sysBasic 基础数据
     * @return 结果
     */
    @Override
    public int updateSysBasic(SysBasic sysBasic)
    {
        return sysBasicMapper.updateSysBasic(sysBasic);
    }

    /**
     * 批量删除基础数据
     * 
     * @param basiIds 需要删除的基础数据ID
     * @return 结果
     */
    @Override
    public int deleteSysBasicByIds(Long[] basiIds)
    {
        return sysBasicMapper.deleteSysBasicByIds(basiIds);
    }

    /**
     * 删除基础数据信息
     * 
     * @param basiId 基础数据ID
     * @return 结果
     */
    @Override
    public int deleteSysBasicById(Long basiId)
    {
        return sysBasicMapper.deleteSysBasicById(basiId);
    }
}
